//
//  TraProjectCell.m
//  carcareIOS
//
//  Created by 王然 on 16/6/28.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import "TraProjectCell.h"
#define CELL_HEIGHT (50)
@implementation TraProjectCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.textLabel.font = FONT_TABLE_TITLE;
        self.textLabel.textColor = [Theme wordColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        CGFloat switchW = 45;
        CGFloat switchH = 31;
        _switchClick = [[UISwitch alloc]initWithFrame:CGRectMake(__MAIN_WIDTH - switchW - 15, (CELL_HEIGHT - switchH) / 2, switchW, switchH)];
        [self addSubview:_switchClick];
        
        [[[UIView viewWithFrame:CGRectMake(0, 0, __MAIN_WIDTH, 0.5)] resetBackgroundColor:[Theme lineColor]] setupOnView:self];
        [[[UIView viewWithFrame:CGRectMake(0, CELL_HEIGHT - 0.5, __MAIN_WIDTH, 0.5)] resetBackgroundColor:[Theme lineColor]] setupOnView:self];
    }
    return  self;
}
+ (CGFloat)getCellHeight
{
    return CELL_HEIGHT;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
